package cn.aran.org.mapper;

import cn.aran.basic.mapper.BaseMapper;
import cn.aran.org.domain.Department;
import cn.aran.org.domain.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description: 员工EmployeeMapper接口类
* @Author: Aran
* @Version: 1.0
* @Date:  2022/6/26 14:51
*/
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUsername(String username);

    // 删除关联表数据
    void removeEmployeeRole(Long id);

    // 添加关联表数据
    void saveEmployeeRole(@Param("eId") Long id, @Param("roles") List<Long> roles);

    Employee loadByLogininfoId(Long id);

    List<Employee> loadByShopId(Long shopId);
}
